package com.kzj.laimeimei.recyclerCard.cardView;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.TextView;

import com.kzj.laimeimei.R;
import com.kzj.laimeimei.recyclerCard.basic.CardItemView;
import com.kzj.laimeimei.recyclerCard.card.other.AboutCard;
import com.kzj.laimeimei.recyclerCard.card.other.TextCard;

/**
 * Created by xyg on 2015/10/26.
 */
public class TextCardView extends CardItemView<TextCard> {

    private Context context;
    private TextView textView_content;

    public TextCardView(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
    }

    public TextCardView(Context context) {
        super(context);
        this.context = context;
    }

    public TextCardView(Context context, AttributeSet attrs) {
        super(context, attrs);
        this.context = context;
    }

    @Override
    public void build(final TextCard card) {
        super.build(card);
        textView_content = (TextView) findViewById(R.id.textView_content);
        textView_content.setText(card.getText());
    }
}
